// 以后这个文件里就封装跟频道有关的接口

import request from '@/utils/request'

export const ownChannels = () => {

    return request({
        url: '/v1_0/user/channels'
    })
} 


export const allChannels = () => {

    return request({
        url: '/v1_0/channels'
    })
} 


// 封装一个保存频道的接口
export const setChannels = (data) => {

    return request({
        url: '/v1_0/user/channels',
        method: 'put',
        data
    })
}